package com.pengke.pangu.service.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 系统角色
 * </p>
 *
 * @author lijunjie
 * @since 2025-02-12
 */
@Getter
@Setter
@ToString
@TableName("sys_role")
@Schema(name = "SysRole", description = "系统角色")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色名称
     */
    @TableField("role_name")
    @Schema(description = "角色名称")
    private String roleName;

    /**
     * 角色编码，唯一索引
     */
    @TableField("role_code")
    @Schema(description = "角色编码，唯一索引")
    private String roleCode;

    /**
     * 排序
     */
    @TableField("order_id")
    @Schema(description = "排序")
    private Integer orderId;

    /**
     * 删除标志
     */
    @TableLogic
    @TableField("deleted")
    @Schema(description = "删除标志")
    private Integer deleted;

    /**
     * 创建者
     */
    @TableField("create_user")
    @Schema(description = "创建者")
    private Integer createUser;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 创建者
     */
    @TableField("update_user")
    @Schema(description = "创建者")
    private Integer updateUser;

    /**
     * 创建时间
     */
    @TableField("update_time")
    @Schema(description = "创建时间")
    private Date updateTime;
}
